Skip to content

Use extra requirements to build readthedocs #546

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

inknos
Copy link
Contributor

@inknos inknos commented Apr 29, 2025

The reference for this change is here although I don't know why it broke in version 4.9.0

Fixes: #532

cc: @jwhonce @Edward5hen

Copy link
Contributor

openshift-ci bot commented Apr 29, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: inknos

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the ReadTheDocs build configuration to use pip for installation and include the docs extras, ensuring documentation dependencies are installed correctly.

  • Switches to pip-based install method
  • Sets project path for installation
  • Adds extra_requirements: docs for documentation build
Comments suppressed due to low confidence (2)

.readthedocs.yaml:23

  • The list item for requirements.txt has an extra dash and incorrect indentation. It should be a single top-level list entry under install, for example:

    python:
    install:
    - requirements: requirements.txt

  install:

.readthedocs.yaml:24

  • The method, path, and extra_requirements keys need to be indented under their - list entry. For example:

    python:
    install:
    - requirements: requirements.txt
    - method: pip
    path: .
    extra_requirements:
    - docs

    method: pip

@jwhonce
Copy link
Member

jwhonce commented Jun 17, 2025

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Jun 17, 2025
@openshift-merge-bot openshift-merge-bot bot merged commit 7235308 into containers:main Jun 17, 2025
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Published documentation is out-of-date
2 participants